﻿@model Telecom.Data.ODF

<div id="list_odf_soi_quang_TableContainer" style="margin:30px; height:400px;"></div>
<div style="text-align:center; padding:5px 0">
    <button type="button" onclick="return close_window_elements('window_view_soi_quang_cap_quang');" >
                <span class="l-btn-left l-btn-icon-left"><span class="l-btn-text">Đóng windown</span><span class="l-btn-icon icon-remove">&nbsp;</span></span></button>
</div>

<script type="text/javascript">


    $(document).ready(function () {

        
        $("#list_odf_soi_quang_TableContainer").mask("Dữ liệu đang tải về ");
        
        

        $('#list_odf_soi_quang_TableContainer').jtable({

            height: '400px',
            title: 'DS ODF SỢI QUANG',
            openChildAsAccordion: true,
            actions: {
                listAction: _nameSubDomain + '/TCapquang/ListODFSoiQuangByOdf?OdfId=@Model.ID',
            },
            
            fields: {
                ID: {
                    key: true,
                    edit: false,
                    create: false,
                    //list:false,
                    width: '3%',
                    
                },
                ODFID: {
                    title: 'ODF',
                    width: '20%',
                    display: function (data) {
                        return Get_Odf_ById(data.record.ODFID).TEN;
                    }
                },
                PORT: {
                    title: 'Port',
                    width: '20%'
                },
                SOIQUANG: {
                    title: 'Sợi Quang',
                    width: '20%',
                    display: function (data) {
                        return Get_SoiQuang_ById(data.record.SOIQUANG).SOI;
                    }
                },
                
                SUDUNG: {
                    title: 'Sử dụng',
                    width: '10%',
                },
                GHICHU: {
                    title: 'Ghi Chú',
                    width: '20%'
                },
            },
            //Initialize validation logic when a form is created
            formCreated: function (event, data) {
                //data.form.find('input[name="TEN"]').addClass('validate[required]');
                data.form.validationEngine();
            },

        });

        $('#list_odf_soi_quang_TableContainer').jtable('load');

        setTimeout(function () { $("#list_odf_soi_quang_TableContainer").unmask(""); }, 1000);

    });


    

    


</script>

<style type="text/css">

    
 </style>